var myApp = angular.module("myApp",["ui.router","tm.pagination"]);




myApp.config(function($stateProvider,$urlRouterProvider){
	$urlRouterProvider.otherwise("idea");
	$stateProvider
		.state("/", {
			url: "/",
			views: {
				"": {templateUrl:"./tpls/public/body.html"},
				"header@/": {templateUrl:"./tpls/public/header.html"},
				"main@/": {templateUrl:"./tpls/public/main.html"}
			}
		})
		.state("/.idea", {
			url: "idea",
			views: {
				"left@/": {templateUrl:"./tpls/idea/idea_left.html"},
				"right@/": {templateUrl:"./tpls/idea/idea_right.html"}
			}
		})
		.state("/.idea.idea_add", {
			url: "/idea_add",
			views: {
				"right@/": {templateUrl:"./tpls/idea/idea_add.html"}
			}
		})
		.state("/.idea.idea_list", {
			url: "/idea_list",
			views: {
				"right@/": {templateUrl:"./tpls/idea/idea_list.html"}
			}
		})
		.state("/.idea.idea_detail", {
			url: "/idea_detail",
			views: {
				"right@/": {templateUrl:"./tpls/idea/idea_detail.html"}
			}
		})
		.state("/.task", {
			url: "task",
			views: {
				"main@/": {templateUrl:"./tpls/task/index.html"},
			}
		})
		.state("/.data", {
			url: "data",
			views: {
				"main@/": {templateUrl: "./tpls/data/index.html"},
			}
		})
		.state("/.team", {
			url: "team",
			views: {
				"main@/": {templateUrl: "./tpls/team/index.html"},
			}
		});
});